<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>餐厅管理系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
            background: #f8fafc;
            min-height: 100vh;
            padding: 20px;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        .header {
            background: white;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            margin-bottom: 40px;
            text-align: center;
        }
        .header h1 {
            color: #1e293b;
            font-size: 36px;
            margin-bottom: 10px;
            font-weight: 600;
        }
        .header p {
            color: #64748b;
            font-size: 16px;
        }
        .modules {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 24px;
        }
        .card {
            background: white;
            padding: 32px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.15);
        }
        .card.customers:hover {
            border-color: #2563eb;
        }
        .card.menuitems:hover {
            border-color: #10b981;
        }
        .card.orders:hover {
            border-color: #f59e0b;
        }
        .card.orderdetails:hover {
            border-color: #06b6d4;
        }
        .card .icon {
            font-size: 48px;
            margin-bottom: 20px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .card.customers .icon { color: #2563eb; }
        .card.menuitems .icon { color: #10b981; }
        .card.orders .icon { color: #f59e0b; }
        .card.orderdetails .icon { color: #06b6d4; }
        
        .card h2 {
            color: #1e293b;
            font-size: 20px;
            margin-bottom: 12px;
            font-weight: 600;
        }
        .card p {
            color: #64748b;
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 24px;
        }
        .card a {
            display: inline-block;
            padding: 12px 32px;
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        .card.customers a {
            background: #2563eb;
        }
        .card.customers a:hover {
            background: #1d4ed8;
        }
        .card.menuitems a {
            background: #10b981;
        }
        .card.menuitems a:hover {
            background: #059669;
        }
        .card.orders a {
            background: #f59e0b;
        }
        .card.orders a:hover {
            background: #d97706;
        }
        .card.orderdetails a {
            background: #06b6d4;
        }
        .card.orderdetails a:hover {
            background: #0891b2;
        }
        .footer {
            text-align: center;
            color: #64748b;
            margin-top: 60px;
            padding: 20px;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>餐厅管理系统</h1>
            <p>Restaurant Management System</p>
        </div>
        
        <div class="modules">
            <div class="card customers">
                <div class="icon">👥</div>
                <h2>顾客管理</h2>
                <p>管理顾客信息，查看顾客订单历史，维护顾客关系</p>
                <a th:href="@{/customers/list}">进入模块</a>
            </div>
            
            <div class="card menuitems">
                <div class="icon">🍽️</div>
                <h2>菜单管理</h2>
                <p>管理餐厅菜品，维护菜品价格和分类信息</p>
                <a th:href="@{/menuitems/list}">进入模块</a>
            </div>
            
            <div class="card orders">
                <div class="icon">📋</div>
                <h2>订单管理</h2>
                <p>创建和管理订单，查看订单详情和顾客信息</p>
                <a th:href="@{/orders/list}">进入模块</a>
            </div>
            
            <div class="card orderdetails">
                <div class="icon">📝</div>
                <h2>订单详情</h2>
                <p>管理订单详细信息，包括菜品数量和关联关系</p>
                <a th:href="@{/orderdetails/list}">进入模块</a>
            </div>
        </div>
        
        <div class="footer">
            <p>&copy; 2025 Restaurant Management System | Spring MVC + MyBatis + Thymeleaf</p>
        </div>
    </div>
</body>
</html>
